package com.atguigu.algorithm;
import java.util.Scanner;
public class TheReceiveList {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextLine()){
            String string1=scanner.nextLine();
            String string2=scanner.nextLine();
            if(string1.contains("\"")){
                String[] split = string1.split("\"");
                for(String s:split){
                    if(!s.isEmpty() &&s.charAt(0)==','){
                        s.replaceAll(","," ");
                    }
                    if(s.equals(string2)){
                        System.out.println("Ignore");
                    }
                }
                System.out.println("Important!");
            }else{
                if(string1.contains(string2)){
                    System.out.println("Ignore");
                }
            }
        }
    }
}
